<?php
class Search extends CI_Controller{
    function __construct(){
        parent::__construct();
        $this->load->library('smarty_ci');
        $this->load->helper(array('form','url'));
    }
    function index(){
       if(isset($_GET['key'])){
           $site['key_request']=$this->input->get('key',TRUE);
           $site['title']=$site['key_request'].'|dev.neu.search';
           $site['base_url']=BASE_URL;
           $site['search_in']=$this->input->get('in',true);
           $site['open_form']=form_open('search','name="search_form" id="search_form" method="get"');
           $site['close_form']=form_close();
           $this->smarty_ci->view('search.tpl',$site);
       }else{
           exit;
       }
    }
}
